import type { FC } from 'react';
import style from './index.less';
import React, { Fragment, useState, useEffect } from 'react';
import { Avatar, Button, Tag } from 'antd';
import { GithubOutlined, IdcardOutlined, ToolOutlined, HourglassOutlined } from '@ant-design/icons';
import { getCurrentUser } from './service';

interface Props {}
const Header: FC<Props> = () => {
    const [user_id,setUserId]=useState(localStorage.getItem('user_id')||'')
    const [userInfo,setUserInfo]=useState({})
    const getUser = ()=>{
        getCurrentUser({user_id:user_id}).then((res)=>{
            console.log(res)
            setUserInfo(res.data)
        })
    }
     useEffect(()=>{
        getUser()
     },[])
  return (
    <div className={style.head_con}>

    </div>
  );
};

export default Header;
